home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / utils / file / managers / mc-3.2 / mc-3 / mc-3.2.1 / src / global.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-05-17  |  451 b   |  34 lines

  1. #ifndef __GLOBAL_H
  2. #define __GLOBAL_H
  3.  
  4. extern char *home_dir;
  5.  
  6. #ifdef min
  7. #undef min
  8. #endif
  9.  
  10. #ifdef max
  11. #undef max
  12. #endif
  13.  
  14. #define min(x,y) (x>y ? y: x)
  15. #define max(x,y) (x>y ? x: y)
  16.  
  17. void refresh_screen (void *);
  18.  
  19. #ifndef HAVE_STRDUP
  20. char *strdup (char *);
  21. #endif
  22.  
  23. /* AIX compiler doesn't understand '\e' */
  24. #define ESC_CHAR '\033'
  25. #define ESC_STR  "\033"
  26.  
  27. #ifdef USE_BSD_CURSES
  28. #   define xgetch x_getch
  29. #else
  30. #   define xgetch getch
  31. #endif
  32.  
  33. #endif
  34.